package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.ZxTzqk;
import cn.stylefeng.guns.sys.modular.system.model.params.ZxChengbenParam;
import cn.stylefeng.guns.sys.modular.system.model.params.ZxTzqkParam;
import cn.stylefeng.guns.sys.modular.system.model.result.MdzxResult;
import cn.stylefeng.guns.sys.modular.system.model.result.ZxTzqkResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author jiangge
 * @since 2020-11-20
 */
public interface ZxTzqkMapper extends BaseMapper<ZxTzqk> {

    /**
     * 获取列表
     *
     * @author jiangge
     * @Date 2020-11-20
     */
    List<ZxTzqkResult> customList(@Param("paramCondition") ZxTzqkParam paramCondition);

    /**
     * 获取map列表
     *
     * @author jiangge
     * @Date 2020-11-20
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ZxTzqkParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author jiangge
     * @Date 2020-11-20
     */
    Page<ZxTzqkResult> customPageList(@Param("page") Page page, @Param("paramCondition") ZxTzqkParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author jiangge
     * @Date 2020-11-20
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ZxTzqkParam paramCondition);

    Integer selectCountByBtyZxMdzxId(@Param("param") ZxChengbenParam param);

    List<ZxTzqkResult> selectTzqkByParam(@Param("paramCondition") ZxTzqkParam param);

    void deleteByBtyZxMdzxId(@Param("btyZxMdzxId") Long btyZxMdzxId);

    Integer deleteByMdzxAndKemu(@Param("paramCondition") ZxTzqkParam paramCondition);


    List<MdzxResult> queryMdListZhangbuping();


}
